package com.lishe.lishe.retrofit.interfaces;

import com.lishe.lishe.lishe.module.excitation.bean.user.UserInfoObject;
import com.lishe.lishe.retrofit.BaseRequestBody;
import com.lishe.lishe.retrofit.MyObserver.FileUploadObserver;
import com.lishe.lishe.retrofit.bean.UploadInfo;


import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Url;

/**
 * Created by yang on 2017/11/22.
 */

public interface FileService {

    @POST()
    @Multipart
    Observable<BaseRequestBody<UploadInfo>> uploadFile(@Url() String url, @Body RequestBody token, @Part MultipartBody.Part file);

    @GET("礼舍_1.0.3.apk")
    Observable<ResponseBody> downLoadFile();
}
